﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Linq;
using WPFExcelReport.Helpers;
using System.Windows.Input;
using System.Windows.Controls;
namespace WPFExcelReport
{
    /// <summary>
    /// 专用于布卷剪布
    /// </summary>
    public partial class TWVWB25
    { 
        public TWVWB25()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return; 
            InitializeComponent();
        }
        public void VARCommand(object sender, RoutedEventArgs e)
        {
            foreach (var item in dlgMaster.SelectedItems)
            {
                if (!item.GetType().ToString().Contains("DataRowView")) continue;
                DataRow _dwWB = ((System.Data.DataRowView)item).Row;
                _dwWB["WBBVAR"]= BZ.Trim().PadRight(2);
                TMV.UWB24(_dwWB); 
            }
        }
    }
}
